import { axios } from "@/util/request.js";

// 基础类API
const basic = {
	// 获取用户信息
	userInfo: "/user/Info"
};

export default basic;

// 获取当前用户信息
export function getUserInfo(parameter) {
	return axios({
		url: basic.userInfo,
		method: "get",
		params: parameter,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	});
}

// 示例对象
export function get2step(parameter) {
	return axios({
		url: api.twoStepCode,
		method: "post",
		data: parameter
	});
}
